package com.zggao.controller.frontend;

import com.zggao.entity.dto.MainPageInfoDTO;
import com.zggao.entity.dto.Result;
import com.zggao.service.combine.IHeadLineShopCategoryCombineService;
import org.simpleframework.core.annotation.Controller;
import org.simpleframework.inject.annotation.Autowired;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
public class MainPageController {

    @Autowired(value = "HeadLineShopCategoryCombineServiceImpl")
    private IHeadLineShopCategoryCombineService headLineShopCategoryCombineService;

    public Result<MainPageInfoDTO>getMainPageInfo(HttpServletRequest req, HttpServletResponse resp){
        return headLineShopCategoryCombineService.getMainPageInfo();
    }
    public void throwException(){
        throw new RuntimeException("抛出异常测试");
    }

    public IHeadLineShopCategoryCombineService getHeadLineShopCategoryCombineService() {
        return headLineShopCategoryCombineService;
    }

    public void setHeadLineShopCategoryCombineService(IHeadLineShopCategoryCombineService headLineShopCategoryCombineService) {
        this.headLineShopCategoryCombineService = headLineShopCategoryCombineService;
    }
}
